package org.example.springmvc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * ClassName: Hello01Controller
 * Package: org.example.springmvc.controller
 * Description: 相当于之前的PageServlet
 *
 * @Author wanghao
 * @Create 2024-07-12 8:48
 * @Version 1.0
 */
//@Controller
public class Hello02Controller {

    // http://localhost/hello02/page?page=add
    @RequestMapping("/page")
    public String page(String page) {
        return page;
    }
}
